package git.soulbgm;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.Charset;

/**
 * @author SoulBGM
 * @version 1.0
 * @date 2019/11/9 23:52
 */
public class Test {

    public static void main(String[] args) throws IOException {
        InputStream is = new FileInputStream("F:\\下载\\index.m3u8");
        int available = is.available();
        byte[] bytes = new byte[available];
        is.read(bytes);
        is.close();
        System.out.println(new String(bytes, Charset.forName("UTF-8")));
    }

}
